/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Ejercicio_11_5_1;

/**
 *
 * @author alumno
 */
public class EmpleadoClassTest {

    
    public static void main(String[] args) {

        EmpleadoClass [] empleados;
        empleados = new EmpleadoClass [7];

        String [] competencias;
        competencias = new String[10];

        GerenteClass g = new GerenteClass();

        IlustradorClass i1 = new IlustradorClass();

        i1.setNombre("Amado Nervo");
        i1.setCargo("Comercial");
        i1.setNivel(0);

        competencias = ["Competencia1"];
        i1.setCompetencias(competencias);

        IlustradorClass i2 = new IlustradorClass();

        RedactorClass r1 = new RedactorClass();
        RedactorClass r2 = new RedactorClass();
        RedactorClass r3 = new RedactorClass();

        EditorClass e1 = new EditorClass();
        EditorClass e2 = new EditorClass();

        
        empleados[0] = i1;
        empleados[1] = i2;

        empleados[2] = r1;
        empleados[3] = r2;
        empleados[4] = r3;

        empleados[5] = e1;
        empleados[6] = e2;

        g.empleados = empleados;
        g.mostrarEmpleados();

    }

}
